package es.ats.codington.festival.domain;



/**
 * The Class Event.
 */
public class Event {
	
	/** The namevent. */
	private String namevent;
	
	/** The description. */
	private String description;
	
	/** The price. */
	private float price;
	
	/** The place. */
	private Place place;
	
	/** The people. */
	private People people;
	
	/** The i devent. */
	private int iDevent;
	
	/** The seats. */
	private int seats;
	 

	//Constructors

	/**
	 * Instantiates a new event.
	 *
	 * @param namevent the namevent
	 * @param description the description
	 * @param startime the startime
	 * @param finishtime the finishtime
	 * @param price the price
	 * @param place the place
	 */
	
	public Event(String namevent, String description, float startime,
			float finishtime, float price, Place place) {
		super();
		this.namevent = namevent;
		this.description = description;
		this.price = price;
		this.place = place;
		this.seats = place.getCapacity();		
	}

	
	/**
	 * Default Constructor.
	 */
	public Event() {
	
	}


	//Getters and Setters
	
/**
	 *  This method obtain the iDevent.
	 *
	 * @return iDevent
	 */
	public int getiDevent() {
		return iDevent;
	}

/**
 *  This method changes the iDevent.
 *
 * @param iDevent the new i devent
 */
	public void setiDevent(int iDevent) {
		this.iDevent = iDevent;
	}

/**
 *  This method obtain people.
 *
 * @return people
 */
	public People getPeople() {
		return people;
	}

/**
 *  This method changes people.
 *
 * @param people the new people
 */
	public void setPeople(People people) {
		this.people = people;
	}
	
/**
 *  This method obtain the place.
 *
 * @return place
 */
	public Place getPlace() {
		return place;
	}

/**
 *  This method changes the place.
 *
 * @param place the new place
 */
	public void setPlace(Place place) {
		this.place = place;
	}

/** This method obtain the namevent
 * 	
 * @return namevent
 */
	public String getNamevent() {
		return namevent;
	}

/**
 *  This method changes the namevent
 * 	
 *
 * @param namevent the new namevent
 */
	public void setNamevent(String namevent) {
		this.namevent = namevent;
	}

/** This method obtain the description
 * 	
 * @return description
 */
	public String getDescription() {
		return description;
	}

/**
 *  This method changes the description
 * 	
 *
 * @param description the new description
 */
	public void setDescription(String description) {
		this.description = description;
	}


/** This method obtain the price
 * 	
 * @return price
 */
	public float getPrice() {
		return price;
	}

/**
 *  This method changes the price
 * 	
 *
 * @param price the new price
 */
	public void setPrice(float price) {
		this.price = price;
	}


/**
 * Gets the seats.
 *
 * @return the seats
 */
public int getSeats() {
	return seats;
}


/**
 * Sets the seats.
 *
 * @param seats the seats to set
 */
public void setSeats(int seats) {
	this.seats = seats;
}
	
	
	}
	
